<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>截取字符串</title>
<script language="javascript" type="text/javascript">
 	var str1="十月一日是国庆节";
	alert(str1.substr(5,3));
</script>
</head>

<body>
</body>
</html>
